package com.ruoyi.rpt.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.rpt.mapper.RptOrderProgressMapper;
import com.ruoyi.rpt.domain.RptOrderProgress;
import com.ruoyi.rpt.service.IRptOrderProgressService;

import javax.annotation.Resource;

/**
 * 订单进展情况Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-10
 */
@Service
public class RptOrderProgressServiceImpl implements IRptOrderProgressService 
{
    @Resource
    private RptOrderProgressMapper rptOrderProgressMapper;

    /**
     * 查询订单进展情况
     * 
     * @param orderProgressUuid 订单进展情况主键
     * @return 订单进展情况
     */
    @Override
    public RptOrderProgress selectRptOrderProgressByOrderProgressUuid(String orderProgressUuid)
    {
        return rptOrderProgressMapper.selectRptOrderProgressByOrderProgressUuid(orderProgressUuid);
    }

    /**
     * 查询订单进展情况列表
     * 
     * @param rptOrderProgress 订单进展情况
     * @return 订单进展情况
     */
    @Override
    public List<RptOrderProgress> selectRptOrderProgressList(RptOrderProgress rptOrderProgress)
    {
        return rptOrderProgressMapper.selectRptOrderProgressList(rptOrderProgress);
    }

    /**
     * 新增订单进展情况
     * 
     * @param rptOrderProgress 订单进展情况
     * @return 结果
     */
    @Override
    public int insertRptOrderProgress(RptOrderProgress rptOrderProgress)
    {
        return rptOrderProgressMapper.insertRptOrderProgress(rptOrderProgress);
    }

    /**
     * 修改订单进展情况
     * 
     * @param rptOrderProgress 订单进展情况
     * @return 结果
     */
    @Override
    public int updateRptOrderProgress(RptOrderProgress rptOrderProgress)
    {
        return rptOrderProgressMapper.updateRptOrderProgress(rptOrderProgress);
    }

    /**
     * 批量删除订单进展情况
     * 
     * @param orderProgressUuids 需要删除的订单进展情况主键
     * @return 结果
     */
    @Override
    public int deleteRptOrderProgressByOrderProgressUuids(String[] orderProgressUuids)
    {
        return rptOrderProgressMapper.deleteRptOrderProgressByOrderProgressUuids(orderProgressUuids);
    }

    /**
     * 删除订单进展情况信息
     * 
     * @param orderProgressUuid 订单进展情况主键
     * @return 结果
     */
    @Override
    public int deleteRptOrderProgressByOrderProgressUuid(String orderProgressUuid)
    {
        return rptOrderProgressMapper.deleteRptOrderProgressByOrderProgressUuid(orderProgressUuid);
    }
}
